#!/bin/bash

echo "stop container, all=start all container php,mysql,redis,nginx: "
read container_name;
case $container_name in
  all) echo "stop all container"
  docker-compose stop php
  docker-compose stop mysql
  docker-compose stop nginx
  docker-compose stop redis
	  ;;
  php) echo "stop php."
  docker-compose stop php
	  ;;
  mysql) echo "stop mysql"
  docker-compose stop mysql
	  ;;
  nginx) echo "stop nginx"
  docker-compose stop nginx
	  ;;
  redis) echo "Orange is a secondary color."
  docker-compose stop redis
	  ;;
  *) echo "container not found.";;
esac
